$OpenBSD: patch-bam-0_2_0_make_unix_sh,v 1.3 2013/08/09 19:04:49 ajacoutot Exp $
--- bam-0.2.0/make_unix.sh.orig	Thu Jan  8 13:07:44 2009
+++ bam-0.2.0/make_unix.sh	Sun Feb  8 18:11:29 2009
@@ -1,4 +1,4 @@
 #!/bin/sh
-gcc -Wall -ansi -pedantic src/tools/txt2c.c -o src/tools/txt2c
+${CC} ${CFLAGS} -Wall -ansi -pedantic src/tools/txt2c.c -o src/tools/txt2c
 src/tools/txt2c src/base.bam src/driver_gcc.bam src/driver_cl.bam > src/internal_base.h
-gcc -Wall -ansi -pedantic src/lua/*.c src/*.c -o src/bam -I src/lua -lm -lpthread -O2 $*
+${CC} ${CFLAGS} -Wall -ansi -pedantic src/lua/*.c src/*.c -o src/bam -I src/lua -lm -lpthread $*
